import { createMemoryHistory, createRouter } from 'vue-router'
//使用路由懒加载
import Home from '@/index/index.vue'
const routes = [
  {
    path: '/',
    redirect: '/home',
    name: 'Home',
    component: Home
  }
]

const router = createRouter({
  history: createMemoryHistory(),
  routes,
})
export default router